const EventEmitter = require('events');

class CustomEmitter extends EventEmitter {}


const myEmitter = new CustomEmitter();

myEmitter.on('music', (data) => {
    console.log('receive music, data = ', data);
});


myEmitter.emit('music', 'amier songs');

